home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / bbstvi30.zip / VI.REF < prev   
Internet Message Format  |  1992-08-16  |  35KB

  1. From: jesse@gumby.Altos.COM (Jesse Chisholm AAC-RjesseD)
  2. Newsgroups: alt.bbs.waffle
  3. Subject: Re: BBStevie 2.0
  4. Message-ID: <4918@gumby.Altos.COM>
  5. Date: 12 Jun 91 03:54:19 GMT
  6. References: <RcJs31w164w@cybrspc>
  7. Organization: Altos Computer Systems, San Jose, CA
  8. Lines: 671
  9. Article-I.D.: gumby.4918
  10.  
  11. roy%cybrspc@cs.umn.edu (Roy M. Silvernail) writes:
  12. | jzl@micasa.guild.org (Jack Z. Lupic - VE3FAE) writes:
  13. | > Could you please post the full DOC file for BBStevie so that us non-Unix
  14. | > types can use it.
  15. | Does anyone have a vi man page sitting around?  BBStevie does just about
  16. | everything except macros.
  17.  
  18. Here is a VI reference document that was on another newsgroup awhile ago.
  19.  
  20. Jesse Chisholm          | Disclaimer: My opinions are rarely understood, let
  21. jesse@altos86.altos.com | tel: 1-408-432-6200 | alone held, by this company.
  22. jesse@gumby.altos.com   | fax: 1-408-435-8517 |-----------------------------
  23. ======== This company has officially disavowed all knowledge of my opinions.
  24.  
  25. --- cut to vi.ref ---
  26.  
  27.  
  28.  
  29.  
  30.  
  31.     ////////////////////////////////////////////////////////////////////////
  32.     /                         VI REFERENCE                                 /
  33.     ////////////////////////////////////////////////////////////////////////
  34.  
  35.     Warning: some vi versions don't support the more esoteric features
  36.     described in this document.  You can edit/redistribute this document
  37.     freely, as long as you don't make false claims on original authorship.
  38.  
  39.     Author: Maarten Litmaath <maart@cs.vu.nl>
  40.     Version: 7
  41.  
  42.     /////////////////
  43.     / contributions /
  44.     /////////////////
  45.  
  46.     Rich Salz <rsalz@bbn.com>
  47.     Eamonn McManus <emcmanus@cs.tcd.ie>
  48.     Diomidis Spinellis <diomidis%ecrcvax.uucp@pyramid.pyramid.com>
  49.     Blair P. Houghton <bph@buengc.bu.edu>
  50.     Rusty Haddock <{uunet,att,rutgers}!mimsy.umd.edu!fe2o3!rusty>
  51.     Panos Tsirigotis <panos@boulder.colorado.edu>
  52.     David J. MacKenzie <djm@wam.umd.edu>
  53.     Kevin Carothers <kevin@ttidca.tti.com>
  54.     Dan Mercer <mercer@ncrcce.StPaul.NCR.COM>
  55.     Ze'ev Shtadler <steed@il4cad.intel.com>
  56.     Paul Quare <pq@r2.cs.man.ac.uk>
  57.     Dave Beyerl <att!ihlpl!db21>
  58.  
  59.     ///////////
  60.     / legenda /
  61.     ///////////
  62.  
  63.     default values          : 1
  64.     <*>                     : `*' must not be taken literally
  65.     [*]                     : `*' is optional
  66.     ^X                      : <ctrl>X
  67.     <sp>                    : space
  68.     <cr>                    : carriage return
  69.     <lf>                    : linefeed
  70.     <ht>                    : horizontal tab
  71.     <esc>                   : escape
  72.     <erase>                 : your erase character
  73.     <kill>                  : your kill character
  74.     <intr>                  : your interrupt character
  75.     <a-z>                   : an element in the range
  76.     N                       : number (`*' = allowed, `-' = not appropriate)
  77.     CHAR                    : char unequal to <ht>|<sp>
  78.     WORD                    : word followed by <ht>|<sp>|<lf>
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.     /////////////////
  86.     / move commands /
  87.     /////////////////
  88.  
  89.      N | Command            | Meaning
  90.     ---+--------------------+-----------------------------------------------
  91.      * | h | ^H | <erase>   | <*> chars to the left.
  92.      * | j | <lf> | ^N      | <*> lines downward.
  93.      * | l | <sp>           | <*> chars to the right.
  94.      * | k | ^P             | <*> lines upward.
  95.      * | $                  | To the end of line <*> from the cursor.
  96.      - | ^                  | To the first CHAR of the line.
  97.      * | _                  | To the first CHAR <*> - 1 lines lower.
  98.      * | -                  | To the first CHAR <*> lines higher.
  99.      * | + | <cr>           | To the first CHAR <*> lines lower.
  100.      - | 0                  | To the first char of the line.
  101.      * | |                  | To column <*> (<ht>: only to the endpoint).
  102.      * | f<char>            | <*> <char>s to the right (find).
  103.      * | t<char>            | Till before <*> <char>s to the right.
  104.      * | F<char>            | <*> <char>s to the left.
  105.      * | T<char>            | Till after <*> <char>s to the left.
  106.      * | ;                  | Repeat latest `f'|`t'|`F'|`T' <*> times.
  107.      * | ,                  | Idem in opposite direction.
  108.      * | w                  | <*> words forward.
  109.      * | W                  | <*> WORDS forward.
  110.      * | b                  | <*> words backward.
  111.      * | B                  | <*> WORDS backward.
  112.      * | e                  | To the end of word <*> forward.
  113.      * | E                  | To the end of WORD <*> forward.
  114.      * | G                  | Go to line <*> (default EOF).
  115.      * | H                  | To line <*> from top of the screen (home).
  116.      * | L                  | To line <*> from bottom of the screen (last).
  117.      - | M                  | To the middle line of the screen.
  118.      * | )                  | <*> sentences forward.
  119.      * | (                  | <*> sentences backward.
  120.      * | }                  | <*> paragraphs forward.
  121.      * | {                  | <*> paragraphs backward.
  122.      - | ]]                 | To the next section (default EOF).
  123.      - | [[                 | To the previous section (default begin of file).
  124.      - | `<a-z>             | To the mark.
  125.      - | '<a-z>             | To the first CHAR of the line with the mark.
  126.      - | ``                 | To the cursor position before the latest absolute
  127.                             |   jump (of which are examples `/' and `G').
  128.      - | ''                 | To the first CHAR of the line on which the cursor
  129.                             |   was placed before the latest absolute jump.
  130.      - | /<string>          | To the next occurrence of <string>.
  131.      - | ?<string>          | To the previous occurrence of <string>.
  132.      - | n                  | Repeat latest `/'|`?' (next).
  133.      - | N                  | Idem in opposite direction.
  134.      - | %                  | Find the next bracket and go to its match
  135.                             |   (also with `{'|`}' and `['|`]').
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.     /////////////////////////
  143.     / searching (see above) /
  144.     /////////////////////////
  145.  
  146.     :ta <name>              | Search in the tags file[s] where <name> is
  147.                             |   defined (file, line), and go to it.
  148.     ^]                      | Use the name under the cursor in a `:ta' command.
  149.     ^T                      | Pop the previous tag off the tagstack and return
  150.                             |   to its position.
  151.     :[x,y]g/<string>/<cmd>  | Search globally [from line x to y] for <string>
  152.                             |   and execute the `ex' <cmd> on each occurrence.
  153.     :[x,y]v/<string>/<cmd>  | Execute <cmd> on the lines that don't match.
  154.  
  155.     ///////////////////
  156.     / undoing changes /
  157.     ///////////////////
  158.  
  159.     u                       | Undo the latest change.
  160.     U                       | Undo all changes on a line, while not having
  161.                             |   moved off it (unfortunately).
  162.     :q!                     | Quit vi without writing.
  163.     :e!                     | Re-edit a messed-up file.
  164.  
  165.     ///////////////////////////////////
  166.     / appending text (end with <esc>) /
  167.     ///////////////////////////////////
  168.  
  169.      * | a                  | <*> times after the cursor.
  170.      * | A                  | <*> times at the end of line.
  171.      * | i                  | <*> times before the cursor (insert).
  172.      * | I                  | <*> times before the first CHAR of the line
  173.      * | o                  | On a new line below the current (open).
  174.                             |   The count is only useful on a slow terminal.
  175.      * | O                  | On a new line above the current.
  176.                             |   The count is only useful on a slow terminal.
  177.      * | ><move>            | Shift the lines described by <*><move> one
  178.                             |   shiftwidth to the right.
  179.      * | >>                 | Shift <*> lines one shiftwidth to the right.
  180.      * | ["<a-zA-Z1-9>]p    | Put the contents of the (default undo) buffer
  181.